/**
 * Copyright 厦门中软海晟信息技术有限公司 版权所有 违者必究 2019
 */
package com.opencvjava.piano.support;

import java.util.ArrayList;
import java.util.List;

/**
 * @author : sunzb
 * @date: 2019/11/28
 */
public class Block {
    private List<Unit> units = new ArrayList<>();
    private Unit top;
    private Unit bottom;
    private Unit left;
    private Unit right;
    private byte avg;

    public enum BType {
        FILL, MIX
    }

    public List<Unit> getUnits() {
        return units;
    }

    public Block setUnits(List<Unit> units) {
        this.units = units;
        return this;
    }

    public Unit getTop() {
        return top;
    }

    public Block setTop(Unit top) {
        this.top = top;
        return this;
    }

    public Unit getBottom() {
        return bottom;
    }

    public Block setBottom(Unit bottom) {
        this.bottom = bottom;
        return this;
    }

    public Unit getLeft() {
        return left;
    }

    public Block setLeft(Unit left) {
        this.left = left;
        return this;
    }

    public Unit getRight() {
        return right;
    }

    public Block setRight(Unit right) {
        this.right = right;
        return this;
    }

    public byte getAvg() {
        return avg;
    }

    public Block setAvg(byte avg) {
        this.avg = avg;
        return this;
    }
}
